package com.base.admin.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @author rqq
 */
@Data

public class UpdatePasswordVO {
    @NotBlank(message = "旧密码不能为空")
    @Size(min = 6, message = "旧密码长度不能小于6位")
    private String oldPassword;
    @NotBlank(message = "新密码不能为空")
    @Size(min = 6, message = "新密码长度不能小于6位")
    private String newPassword;
    @NotBlank(message = "确认密码不能为空")
    @Size(min = 6, message = "确认密码长度不能小于6位")
    private String confirmPassword;
}
